//
//  NativeSelfRenderAdView.h
//  JAGatherAdDemo
//
//  Created by Yc on 2024/2/19.
//

#import <UIKit/UIKit.h>
#import <JAGatherAdSDK/JAGatherAdSDK.h>

NS_ASSUME_NONNULL_BEGIN

@interface NativeSelfRenderAdView : UIView

/// 标题
@property (nonatomic, strong) UILabel *titleLabel;
/// 广告
@property (nonatomic, strong) UILabel *contentLabel;
/// 图片
@property (nonatomic, strong) UIImageView *imageView;
/// logo
@property (nonatomic, strong) UIImageView *logoView;
/// 关闭按钮
@property (nonatomic, strong) UIButton *dislikeButton;
/// 视频
@property (nonatomic, strong) UIView *mediaView;
/// 广告物料
@property (nonatomic, strong) id<JAGFeedAdMeta> adMeta;
/// 自定义关闭事件回调
@property (nonatomic, copy) void (^tapDislikeBlock)(void);

- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;

/// 绑定广告数据
- (void)registerDataObject;

/// 解绑广告数据   如果调用了registerDataObject:方法  一定要在适当的时机  调用unregisterDataObject方法
- (void)unregisterDataObject;

@end

NS_ASSUME_NONNULL_END
